package com.chanzany.flyweight.tetris;

public class Client {
    public static void main(String[] args) {
        BoxFactory factory = BoxFactory.getInstance();
        AbstractBox box_I = factory.getBox("I");
        AbstractBox box_L = factory.getBox("L");
        AbstractBox box_O = factory.getBox("O");
        AbstractBox box_I2 = factory.getBox("I");
        box_I.display("red");
        box_I2.display("blue");
        System.out.println("box_I==box_I2?"+ (box_I==box_I2));
    }
}
